package com.hooda.config;

import com.hooda.popj.SimpleBean;
import com.hooda.popj.SimpleExecutor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhangzp
 * @version 1.0
 * @date 2021/9/30
 */
@Configuration
@ConditionalOnBean(SimpleExecutor.class)
public class TestAutoConfiguration {

    @Bean
    public SimpleBean simpleBean() {
        return new SimpleBean();
    }
}
